/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package turtle1;

import edu.turtlekit2.kernel.agents.Turtle;
import edu.turtlekit2.kernel.agents.Viewer;
import edu.turtlekit2.kernel.environment.Patch;
import java.awt.Graphics;

/**
 *
 * @author shyzk_000
 */
public class SpecialViewer extends Viewer
{
    @Override
    public void paintTurtle(Graphics g,Turtle t,int x,int y,int cellSize)
    {
               g.setColor(t.getColor());
               g.fillOval(x,y,cellSize*3,cellSize*3);
        }

    public void paintPatch(Graphics g,Patch p,int x,int y,int cellSize)
    {
               g.setColor(p.getColor());
               g.fillRect(x,y,cellSize*3,cellSize*3);
        }

}
